updated so we dont have to reinstall dependencies each time we want to run a search. Also added fn to restart network service