Package.expand() implementation