replace deprecated items
Migrate to cargo (p046-p050)