https://www.primo-engineering.com/2021/10/protection.html