fixed the problem with creating the new Server provider every time