better and cleaner argument handling for nsproxy

NOTE: that PR needs to be merged into #1, because it is based on it.