fixes for shader generation