routes moved to 'run' instead of config so they can be generated from API