uploads got broken in my previous rewrite