fixed curl check