updated example for createExec