check res-auto package when looking for elements
test for res-auto
fix up R