fix compitiblity with rust master