almost have parser working