working with flask