make building of ghost cells optional