adds semi working hierarchical stan