basic support for R-shell buffer