make namespace optional since it is not really used
updated user agent
add upload heuristic in order to avoid premature timeout