clean formatting a bit
produce more useful messages with what() in exceptions