add encryption support