made the file upload easier, first version which is still not reliable