remove old flags