added autoload cookies
bug fix