removed redefined ENABLE_DEBUG
fixed printf patterns
remove static flag, it's not static