cleaning all the mess in the main app