getting servers in separate func - thanks @lvh