fixed rendering and implemented a rendering registry to eliminate the pesky getRenderType