remove debug code
add example code for cookies