cleanup sync.h