first attempt at intelligent network building