handle error when session is undefined
use single quotes
fix typo and improve logging
Add TODO. Scrolldown 9999999 instead of 9999 - kick the can.