gems added and cookie encription