a week out of macao , they had encountered a chinese fleet attempting to subdue an enormous band of pirates , who had established themselves in the zhoushan islands to prey upon both domestic shipping and the smaller ships of the western trade .