removed the console.log, but have no idea about the rest. @janno42 ?