add ns option, how to get opts