small changes to net module