added nc fetch function