Active and flexible: A guide to keeping your muni portfolio safe