Render refactor (with couple of fixes)

i haven't tried deleting it