added bool to track changing mirror state, re-setup session if changed