fixed permissions
tweaks for sync; starting to implement additional helper functions