set repository and class for manager