small additions to facilitate shaders later