almost done with deref_path in fs.c, needs checking