handle parse errors and implement 'include'