decode flag