ensure modules are loaded prior to calling stats functions