initial nested stack approach /issue #119