fixed a memoryUsage call
fixed constant reference from backport in sessions
fixed instance where params were being assigned wrong name
debug only shows if localhost or you have admin privs