changed `$num_instances` default back to `1`