async to sync