setting up files and grid