update comparator with logging and csg_rempl