fix misc warnings