fix deprecated things