add some more error cases

still need to add tests for them
more error cases