added detection of done uri parameter to method