modify mainservice