remove flask related code