stream-line exception handling