changed app to service. working, but I have a strange feeling somthing is not quite right.