fixing bug #35, more sync functions