add basic logic for service