removes flag package