remove trailing whitespace
add debug infos for non-reproductible problem