script file that takes care of magic