add pull/peek logic to the current goal.