added base grid file and some improvements