partial remove rmagic