support legacy typing system