added a bit of net code