added secret to pickling