init locals with url query parameters object