minor changes to the magic commands