sync code for debugging