bug fixes and logging trying to fix collections