add some magic codes