add simple macros for sync dosync