reworked error handling so 404 relates to a character not being found