ENH: setup for api