add proper error-handling in UpLoader