add Parser, segfault because auto_ptr used, needed fix