changed dependency handling to print all missing dependencies at once