add facilities for local R server