fix - use new nio factory api