Distributed and multifaceted effects of threat and safety