fix encryption setup