refactoring of scan BOOL->bool was borked
operations on empty maps borked; str_split returns ref array to ref string