do dependencies correctly