added the ability to retrieve raw json