determine proper renderer and write class names