xycaltest script now in working order