startup rewrite