when saving blocks, wouldn't it be easier just to store both the first level and the second level keys? rather than have the foreach loops each time we need to work out what the second level key is referring to? marko