adding custom cookie wrapper