first whack at implementing .plan