how emergency services work