enable warnings
fix warnings