error caused by adding ns as key

closes #6