cosmetic: nicer way to conditionally run type printer