add exception handle for A* parser