improve error handling in directive parsers