prof: fix disgusting synchronzation