getdesv seems to work, need to fix getdevsR