fixed syntax typo
api udpate to adapt to the store model
[temp] nicer syntax for API debug