fix deprecated calls and provide expected messages for 0.12