reference parsing error handling