changed the way connection works; now uses pool of connections instead of connecting every requests