small updates for protections
fixed some deprecated things