add directory support for packaging