curllibrary was being a stupid stdclass