added session id to log messages

and  a bit or cleanup
warning if cert not found