better exception formatting