mangle script updated