added support

added support for multiple ip addresses, other minor adjustments