flask stub.