baby steps, fixing check_xyz in gen_tile.cpp and store_file_utils.c