need to move curl below dir create line