remove some magic from index