move sync blocks out of action()