added getPurchases command