re #2 add number of instances option