adding additional curl checks