final flask config