added resource and cookies