- fix for old api to promise style