add assertion and exception in parser and v0.15