use autodetectrepository