logging for bad classes