remove magres scripts