add option hostname and port