logic to include directories during wrapping