nio* projects refactored. Work unstable, some debugging required.