final flask configuration