add the ability to define a prestop script