in the middle of switching between sync and async