allow passing of formatter type, with default