fixing file upload issues