basic start and stop. write Json to file