re-wrote get_dirent, ls somewhat works