get rid of obsolete rendering state hacks