modules config now in cache and refactored