nc dir fix + sample app