changed path to generate grid to an absolute path.