added encryption and signatures to the messages