rename subs that belong to mirror to have the prefix _mirror