no longer using connection (using ssl_connection instead)
history doesn't allocate a new array all the time