update api's for store
bug fix for undefined key