preparing for change into android service