mod_magnet framework