add some sync code to perform io