update grid directory