attempting to fix #162, fail should output to console.error