change to read globals during constructing relmaps