precheck for curl

#2