add fold support for other languages