added prune empty directories