check for valid namespace inside model instead of module when resolving