added magnet scripts