made config passed in and not a part of the base because it then couldnt be used for different config on the same grid