Revert "Revert "read up to stack version 5""

This reverts commit f84b3883ef2870e3d9b25bc8790aed31ae89ca2d.