added json api capabilities