fix boolean issue, more logs