added some debugging code for shaders