add multi-instance version