new file gl_base for common base handling