improved error handling
import Parser