[somewhat] working det_depends.c!