added encryption to content methods