open dir method