altstack: stack alignment and accounting tweaks