tweaks to ClearSight script