allocate IP addresses in order and other tuning
added