BREAKING CHANGE: improved cookie and file handling, the tickets tell the story, closes #293 and closes #294