adding curl implementation