added isDebug and isInfo