add helpers extracted from griffithind_co