rewrite app from start