cleanup, rewrite, setup and create a new config