make grid more secure