cleanup and make it start up