v1.1 - added support for ssl or non-ssl for filenames