added debug lines to better understand build failures when using sniff mode