cleanup global settings and move everything around