some progress towards getting loads to work in openGL codegen