Proper support for optional ns argument