first version of fs_opendir completed