nit: there's no jsdoc for the session argument