fix warnings with deprecated functions