added custom store api with custom store tree function