fixes for load and run magics