extracted cookie handling to a seperate gem