refactored mknetworkkit to coexist with itself