move getTypeInfo to another package