moving lib copy to parent script