some rendering improvments