registerService optional