entitlements now outputted into an array for easier json/mongo parsing