added patch from Anders Ossowicki for better output readability