need to compact these now that id fetches can return nil. may be other problems elsewhere.