support IP param in initialization