add a method to get model from flows