complete PV stack implementation