add option to set ip