this looks really ugly and was properbly not what you intended it to do, but it was the only way I could make it work. I think renaming this to just `formatter` is much better