turn on  some warnings and clean up