Add gateway option.

Maybe not a good workaround but i need your advice.