wrap exec commands in a function