initial commit of syncing functionality