preparing for file upload