added use_typebuffer functions for typesystem.