add Desktop.flag support