dynamically load the formatter based on passed format type