file upload tweaks