fixing N possible results and improved logging of invalided sessions