more hackery with json...