some cleanup, rendering stuff