added pre and post script options