added auto_init in set_repo