tweak the build a bit, and rejig the config route as a model for easier unit testing (same pattern as controllers)