more complete flask application