adding chagnes to run_flask 2