replace S-expressions in files to save variables