added curl control;