fix resu + warnings