made it possible to pass options to setup_mirror