fixes to get rid of warnings