more session testing
fixing bug in session logic
catch errors
add production logger