use console.assert, and more logs to see what is going on