patch native file