added pre and post command + somemore output to the console