wrap warning handler around glass1 load