update to use public api