adding flex parsing