move index out of meteor