refactor getFeedItem out; reroute debug output to stderr