remove some flaggs