updated resilience with Katie's layers