add json file versioning
refactoring and renaming