improve noweb expansion
adding static function to get flag names