update sync command to be generic