more logic in json install script