add necessary Flask module, fix bug with method overloading it