set dependencies correctly