update to current flex syntax