re arange the loading of modules