adding a new config variable internal_app_name to specify the name of main module if needed