Revert "remove modules and remove loadCMS()"

This reverts commit 4e89889823e08ba9dbe286880a404cc5258985c1.