add some console.assert stuff