cleanups, small fixes and improvements for the feeds script