adding checks for modules that require context