cb takes a session and err argument.