fix warnings (sort of)