fixed program generator with local json