better formatting for logging