added curl check