update

add cookiehelper
change toEntity and toEntities to extension method.
update

add comment