client key added plus bug fix for json response