refactor libnce.so