added completions log
refactored syncing states
extracted helper methods