minor changes to logging
add token to session