adding r support