removing unused key from foreach
[skip ci]
fixing bug resolving namespaced annotations
added grepNamespace method