fixed pre and post commands