fix some deprecated stack features