added logging to see what's taking so long