switch from explicitly throwing an exception to using 'assert like a pro