fix for json parsing.
added restart=1 support