add fold and rst bindings