check for module vs. class