add more functionality to the sync script. Still a WIP