the script now processes the output from getmagnet() correctly