update with lots of debugging lines, so cannot be trusted.