a lot of work on local storage, finally subject - class - unit works perfectly now, lower hierarchy to follow