added Flask support