support opening directories