clean up net code