two errors demoted to warnings