made invalidate method on custom events not a secret.