handle some missing error cases (#41)