add agency election phase II implementation.


Signed-off-by: free-walker <wally.1981@yahoo.com>