added timeout param + bug when token expiration during upload