query controller add ns