adding support for exec-sync