update changelog
fix compile warnings (unused vars / unused case)