updated debug to include all levels of magic