replace most with Aric's script