fix configureFormatter to use string for class