afanasy: environment modifications for authentication