minor tweaks to shannon.hs