rewrite startup