abstract out exec commands