fix mirror options handling