reverted logging
fixed session init