added _set_app_dir to config method