handling of 3d arrays in save and load