always create curl in construct and destory in destruct