fix storage scripts