initial implementation of typedid