move from async to sync version