remove main from parser