re-factor service in util