add additinal check for cookies