make package-writer async