flowtype upgrade