handle unknown types corretly and display their names