add cookies helper and blocks for NSTimer