some progres on the upload functionality