get the dependencies right