remove dependency on flask-api