display message instead of error?
condensed parser code