added gl light loading code