workaround for self signed SSL connection if DEBUG defined only