fixed logging for xmax/data files