allow getBlock to pull the actual block itself
fixed regression w/ nested loops; clean up empty arrays