add repository and service