fix ct_run with app.config

#241