mostly working, just need to make thumbnails working