transformed the service into a broadcast receiver