altered Parser to return a message on failure