add copytree and cp resource to out