the antminer s5 lacks support for cycling through different pools (correct me if I am wrong)
The antminers use a variant of cgminer which I created.
The pool strategies include a strategy of switching called "rotate" which I put in the code in Jul 20 2011.
You are recreating the wheel and adding an extra tool to do what cgminer already does.