updated flow type to v1.1.