intial version of sync wrapper