dynamically allocate the n/w