fixing compatibility with old data format. finally.