rewrite choke manager