Revert "Revert "stack""

This reverts commit a3d5e2f80d016137beb41bd73cd2212113f91399.