seprate client and admin from hyperdex.cc
clean code