add open sub-dir function