added directory encryption support