added wrapper for flask_api