fix --mirror flag not taken into account

resolves #96