replaced console.log() to debug()
v0.0.9