modify pre script