wip - need to find a way to convert `type` into Type