improved import of old inventory files (better handling of non existing json fields)
refactorising -- this always bugged me