tweaks to spatial PDR code