sessions are passed into callback blocks