fix some data types, suppress some warnings