fix locals auth related