added gateway option in config file