add dependencies instead of read dependencies in graph