added json methods