clean up after extracting net code