flesh out error cases for parsing