add fs-extra and use copySync