integrated with flask, built api