added rblocal function
Reimplemented gem-shims