adding debug information to check session