integrated with flask server