minor changes in open_namev()