make the uploading part work