improving cookie handling in bootstrap utils