handling parsing errors properly