bug fixes and enhancements.  changed from static config strategy to custom command for gateway creation.  Needed since IPs can't be known in advance.
cleanup