connected.c: add new variant that runs with --shallow-file