add error handling and better feed processing