switch console.err to debug for less chattiness