fix weird flask form for flip