simple delegate, will handle cookies later