detecting modules