tbstack: document how it works