work on improving safety of GL interface
took out the responsibility of binding from all classes