read and write s-expressions