added initial JSON API