fix getshares to use own server
clean code for Admin