continued bug fixing for dependiences; updating cache checking.