fix to allow CURL options on connection creation
small fixes to sample code