persistence detection