does `type` need to be stringified