minor refactor of rendering mechanism... makes more sense now