make user exception handling in target parser safer and more correct