applicative template bug
almost have something working