prepare for sync