added basegl class