allow specifying a custom renderer class