slightly better logging for debugging errors for segments