fix for remote repos without -r