added definition of cipher, temporary fix for unserializable permissions