pre-root script