add thumbnails and json support