add pre and post hooks to fire script