adds support for copying directories