add bool type support
compatible with node_server