encapsulate s-expressions