accept both arrays and objects from dependencies