add missing check (Il < N), use different curve library