replace `folder` function with `dest`