work in progress - trying to fix json conversion issue. freeze for the night.