ncvs curl inside loop