patch to allow post execution of a command