small changes to rendering system