add syntax error logging