make working barebones json api