filter out irrelevant modules
respect current namespace / module