fix a few niggly warnings