restructuring grid directory