ported some gists so i don't lose them