added logging in feed loop