minor tweaks to misc/ callbacks script