reworked goals long decode, writing interim view