make encryption optional