refactor init to use the JSONFile to write the file
add autoload information to init