fix ordering of modules