support files and dirs in options