revert changes to exec-sync caused by refactor