auto repogitory detect feature