updating code to ensure that default_app_name will be available