added check with logging for ghost blocks