safer global refs