simplify exceptions to allow easier testing