changed to make grids property can be supplied from external config.