added support for instance instead of port