add support for mutipul gird