some modifications for curl connections