removed rjson dependency in R scripts