adding netx code