added encryption param for DS