pulled myself out of callback hell. the code works.  743 motherfucking pokemon.