added main_app_root config option