first pass at scheduled sync logic
whitespace tweaks