fix various warnings