default gateway can now be set by parameter