added dirty detection so that cassettes are only inserted when the cassette name changes