you should be able to give template options to the formatter, this
will remove the need for wrapper shell scripts.