update dependsOn to accept array