Changed ns to filename and fixed quoting