nicer exception handling syntax