debug ns
ns almost ok,but still more to do