working through some compile warnings