added dir and dir_entry structs