config setting and logging in run.py