fixes some issues with the amazon processing and logging