clear factored out
clear the data prior to init. init needs to be factored out to read json files.