bugfixing file upload