add config to req object using middleware, other
verbage & minor style changes