check if module is defined + style issues