changed some settings to app_args and some code