still have some compile errors . Use Em3d with new Barrier class