Lib : some Net functions