branch to add stack generation