hierarchical learning seems to work although there are some quirks. the major one involves application of an action pops the state stack to top state
hierarchical store works with good generality