Mitigating the threats to coral reefs