updated curl call