add service registration and code consent object construction