added working background service recognition code..