support typelookup. fixes #11