implements getDepartmentsAsync()