exception handle
add cookie file