scripts/magnet