added INSTANCES option, and support for it on PORTS