allow dropping directories as well