made shader handling more robust. changed shader to render as things were before