prim: added more sync mechanisms