magnet links refactored