improves viz type handling, adds R type for general text, R source, etc