trying to iron out some gcc warnings