added parseImport, parseError