store flag, location, rig and company entities in a useful way