created Flask server with debugging