debug: move config variables into controller