partway through return config object refactor
pass baseUrl to buildConfig