refactor parser I/F

refactor parser I/F using Exception instead of returning boolean and null.