Working on rdotnet with encoder