added directory listing method