renamed secure to secureConnection