added support for mesh-based boundary and liquid