better error messages in parse helper