changed to consider upload rates