ADDED bunch of loggers to try to find where the bug is