added connection to new R API
added connection to new R API