set flags to release mode