fixing cookie dependency