added syntax for treating set() like dir()