added -n (nocreate) option