added file/directory option