add NIB support.
Merge pull request #7 from dim1014/patch-1

add NIB support.