added json conversions