hook api to data storage