automagic generation of dependencies

better and complete dependencies...