added barriers save/load