trying fix AuthenticationManager