improved efficiency for object_visible and some slight modifications for new logs