make enum Formatter.Type into constants instead