added skiptrash option