Updated files for using namespaced model
Reduced complexity
Reducing complexity
Reducing complexity, added config getter with default value, fixed getHost