added ability to specify ca path for https connections