started adding rails json api