fix unused function/structure warnings