added session metadata into debug output