improves networking and fixes search function