basic gtype support