fix boolean type
Add configurable def