first running version for register a service