support non-main dependencies.