added servicereg and reg