error handling on the get_char function is now better