improved net code (windows)