authentication listener fixes