add file storage handling for JSON models