added sync command and fixed initial_upload to not reupload everything