added copy to ac script based on dataset