added logging to find the bug :-P