added sync functions for easy file syncing