revert debug writeln as it just works??