some more magnet scripts  and adaptations - JULIA