can't this be `return environment as IDictionary<string, object>;`