debug
fix warnings