change curl execute method