finished server search implementation